using UnityEngine;

public class GameStart : MonoBehaviour
{
    private void Awake()
    {
        //todo 游戏开始
        SheZhiFenBianLv();
    }

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    private void SheZhiFenBianLv()
    {
        Resolution[] resolutions = Screen.resolutions;
        //设置当前分辨率
        Screen.SetResolution(resolutions[resolutions.Length - 1].width, resolutions[resolutions.Length - 1].height, true);
        Screen.fullScreen = true; //设置成全屏,
    }
}
